#include <QCoreApplication>
#include"head.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    arraylist al;
    al.showlist();
    al.findmax();
//    cout<<endl<<"max: "<<al.findmax()<<endl;
//    cout<<endl<<"node number is : "<<al.nodenumber()<<endl;
    cout<<endl<<"max: "<<al.max<<endl;
    al.nodenumber();
    cout<<endl<<"node number is : "<<al.nodecounter<<endl;
    al.getsum();
    cout<<endl<<"average : "<<al.sum*1.0/al.nodecounter<<endl;
    return a.exec();
}
